import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/',
      name: 'index',
      component: () => import('@/components/index')
    },
    //物业缴费
    {
      path: '/propertyPay/bill',
      name: 'propertyPayBill',
      component: () => import('@/components/propertyPay/bill')
    },
    {
      path: '/propertyPay/history',
      name: 'propertyPayHistory',
      component: () => import('@/components/propertyPay/history')
    },
    {
      path: '/propertyPay/recharge',
      name: 'propertyPayRecharge',
      component: () => import('@/components/propertyPay/recharge')
    },
    //报事报修
    {
      path: '/repair/info',
      name: 'repairInfo',
      component: () => import('@/components/repair/info')
    },
    // 投诉建议
    {
      path: '/advise/info',
      name: 'adviseInfo',
      component: () => import('@/components/advise/info')
    },
    //通知公告
    {
      path: '/notice/list',
      name: 'noticeList',
      component: () => import('@/components/notice/list')
    },
    {
      path: '/notice/info',
      name: 'noticeInfo',
      component: () => import('@/components/notice/info')
    },
    //停车场
    {
      path: '/parking/plateNumber',
      name: 'parkingPlateNumber',
      component: () => import('@/components/parking/plateNumber')
    },
    {
      path: '/parking/pay',
      name: 'parkingPay',
      component: () => import('@/components/parking/pay')
    },

    //个人中心
    {
      path: '/user/info',
      name: 'userInfo',
      component: () => import('@/components/user/info')
    },
    {
      path: '/user/roomList',
      name: 'userRoomList',
      component: () => import('@/components/user/roomList')
    },
    {
      path: '/user/addRoom',
      name: 'userAddRoom',
      component: () => import('@/components/user/addRoom')
    },
    {
      path: '/user/memberList',
      name: 'userMemberList',
      component: () => import('@/components/user/memberList')
    },
    {
      path: '/user/memberInfo',
      name: 'userMemberInfo',
      component: () => import('@/components/user/memberInfo')
    },
    {
      path: '/user/ownInfo',
      name: 'userOwnInfo',
      component: () => import('@/components/user/ownInfo')
    },
    {
      path: '/user/modifyMember',
      name: 'userModifyMember',
      component: () => import('@/components/user/modifyMember')
    },
    {
      path: '/user/repairList',
      name: 'userRepairList',
      component: () => import('@/components/user/repairList')
    },
    {
      path: '/user/adviseList',
      name: 'userAdviseList',
      component: () => import('@/components/user/adviseList')
    },
    {
      path: '/user/authentication',
      name: 'userAuthentication',
      component: () => import('@/components/user/authentication')
    },
    {
      path: '/user/keys',
      name: 'userKeys',
      component: () => import('@/components/acs/KeyList')
    },
    // ad
    {
      path: '/ad',
      name: 'ad',
      component: () => import('@/components/ad/ad')
    },
    //融科
    {
      path: '/rongke/attestation',
      name: 'rongkeAttestation',
      component: () => import('@/components/rongke/attestation')
    },
    {
      path: '/rongke/friendly',
      name: 'rongkeFriendly',
      component: () => import('@/components/rongke/friendly')
    },
    {
      path: '/rongke/rkUser',
      name: 'rongkeRkUser',
      component: () => import('@/components/rongke/rkUser')
    },
    {
      path: '/rongke/rkMember',
      name: 'rongkeRkMember',
      component: () => import('@/components/rongke/rkMember')
    },
    {
      path: '/rongke/modifyMember',
      name: 'rongkeModifyMember',
      component: () => import('@/components/rongke/modifyMember')
    }
  ]
})
